package com.byedu.domain.course.vo.enumvos;

import com.byedu.model.enums.QuestionTypeEnum;

/**
 * Created by weidangwang on 2017/5/20.
 */
public class QuestionTypeVO {
    private String name;
    private String title;

    public QuestionTypeVO() {
    }

    public QuestionTypeVO(String type) {
        this.name = QuestionTypeEnum.valueOf(type).name();
        this.title = QuestionTypeEnum.valueOf(type).getTitle();
    }

    public QuestionTypeVO(QuestionTypeEnum type) {
        this.name = type.name();
        this.title = type.getTitle();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
